package p3;

import java.util.Scanner;

/**
 * @author krystal
 * @date 2022/11/9 19:27
 */
public class Demo8 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入你的姓名：");
        String name=scanner.nextLine();
        System.out.println("请输入你的年龄：");
        int age=scanner.nextInt();
        System.out.println("请输入你的工资：");
        float salary=scanner.nextFloat();
        System.out.println("你的信息如下：");
        System.out.println("姓名"+name+"\n"+"年龄"+age+"\n"+"工资"+salary);
        scanner.close();
    }

}
